import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';

import { CameraPage } from "../camera/camera";
import {GeolocationPage} from "../geolocation/geolocation";
import { RefreshPage } from "../refresh/refresh";
import { ComponentsPage } from "../components/components";

@Component({
  selector: 'page-home',
  templateUrl: 'home.html'
})
export class HomePage {

    public CameraPage=CameraPage;
    public GeolocationPage = GeolocationPage;
    public RefreshPage = RefreshPage;
    public ComponentsPage = ComponentsPage;

    public list:any;
    public sliders:any;


    constructor(public navCtrl: NavController) {
      this.list = [{"label":'相机调用',"page":this.CameraPage},
          {"label":'定位',"page":this.GeolocationPage},
          {"label":'支付',"page":this.GeolocationPage},
          {"label":'地图',"page":this.GeolocationPage},
          {"label":'刷新',"page":this.RefreshPage},
          {"label":'组件',"page":this.ComponentsPage}];
      this.sliders = [{"id":'slider1',"imgUrl":'assets/imgs/slide01.png'},
          {"id":'slider1',"imgUrl":'assets/imgs/slide02.png'},
          {"id":'slider1',"imgUrl":'assets/imgs/slide03.png'}];

  }

    goPush(page:any){
      this.navCtrl.push(page);
    }

}
